package com.demo.springcloud.service;

import com.demo.springcloud.pojo.CommonResult;
import com.demo.springcloud.pojo.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author chenyuan
 * @date 2020/12/23 11:14
 */
@FeignClient(value = "nacos-payment-provider", fallback = FeignFallbackService.class)
public interface FeignService {
	@GetMapping(value = "/paymentSQL/{id}")
	public CommonResult<Payment> paymentSQL(@PathVariable("id") Long id);
}
